package win.ganbo.softwareFive.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Service;

@Service
public interface IBaseService<T> {

    public void save(T t);

    public void saveOrUpdate(T t);

    public void delete(Serializable id);

    public void deleteAll();

    public void update(T t);

    public T get(Serializable id);

    public List<T> getAll();

    public List<?> findByHql(String hql, Object... params);

    public Object getUniqueResult(String hql, Object... params);

}
